#include "SFML\System.hpp"
#include "Object.h"


using namespace sf;

float DotProduct(const Vector2f &a, const Vector2f &b)
{
	return  a.x*b.x + a.y * b.y;
}

float VectorLength(const Vector2f &v)
{
	return sqrt(v.x * v.x + v.y * v.y);
}

Vector2f Normslised(Vector2f v)
{
	float length = VectorLength(v);
	v.x /= length;
	v.y /= length;
	return v;
}

